package com.smt.ejb3.tutoria.client;

import javax.naming.InitialContext;
import javax.naming.NamingException;

import com.smt.ejb3.tutoria.sessionbean.MrB1;

public class MrBeanClient {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			InitialContext ctx = new InitialContext();

			MrB1 bean = (MrB1) ctx
					.lookup("MrBean/remote");

			System.out.println(bean.getName());
		} catch (NamingException ex) {
			ex.printStackTrace();
		}
	}

}
